package com.itbaizhan.shopping_common.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itbaizhan.shopping_common.pojo.Orders;
import com.itbaizhan.shopping_common.pojo.SeckillGoods;

//秒杀服务
public interface SeckillService {

    // 分页查询秒杀商品
    Page<SeckillGoods> search(Integer page, Integer size);
    // 查询秒杀商品详情
    SeckillGoods findById(Long goodsId);
    //生成秒杀订单
    Orders createOrder(Orders orders);
    //查询秒杀订单
    Orders findOrder(String id);
    //支付秒杀订单
    Orders pay(String orderId);



}
